package com.linghang.association.domain;

public class UserRole {
    private String userName;

    private Integer role;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userName=").append(userName);
        sb.append(", role=").append(role);
        sb.append("]");
        return sb.toString();
    }

    public UserRole(String userName, Integer role) {
        this.userName = userName;
        this.role = role;
    }
}